//
//  User.m
//  cat
//
//  Created by imera on 16/3/24.
//  Copyright © 2016年 LX. All rights reserved.
//

#import "LXUser.h"

@implementation LXUser

+ (instancetype)initWithDict:(NSDictionary *)dict
{
    return [[self alloc]initWithDict:dict];
}

- (instancetype)initWithDict:(NSDictionary *)dict
{
    self.ID = [dict[@"id"] integerValue];
    self.uname = dict[@"uname"];
    self.email = dict[@"email"];
    self.headpic = [NSString stringWithFormat:@"%s%@",LXWebRoot,dict[@"headpic"]];
    self.fans = [dict[@"fans"] integerValue];
    self.follow = [dict[@"follow"] integerValue];
    self.sex = [dict[@"sex"] integerValue];
    self.ulevel = [dict[@"ulevel"] integerValue];
    self.info = dict[@"info"];
    self.catfood = [dict[@"catfood"] integerValue];
    self.allvideos = [dict[@"allvideos"] integerValue];
    self.birth = dict[@"birth"];
    self.experience = [dict[@"experience"] integerValue];
    
    return [self init];
}
@end
